package com.juyu.miliao.common.constant.enumRedisKey;

import java.text.MessageFormat;

public enum EnumRedisKey {

    SET_USER_APPPACKAGEID(1,"userBy:{0}","用于存储通过指定包名登录或注册的用户"),
    SET_USER_ONLINE_APPPACKAGEID_SEX(1,"userOnLineBy:{0}BySex:{1}","用于存储通过指定包名登录或注册的在线用户"),
    SET_USER_LOGIN_EVERYDAY(1,"userLoginEveryDay","用于判断用户是否今日首次登陆");

    public final int state;
    public final String value;
    public final String desc;
    EnumRedisKey(int state, String value, String desc){
        this.state = state;
        this.value = value;
        this.desc = desc;
    }
    public String getValue(Object... params) {
        return MessageFormat.format(value, params);
    }
}
